Pod::Spec.new do |spec|
  spec.name         = "SpeechSynthesizer"
  spec.version      = "0.0.1"
  spec.summary      = "SpeechSynthesizer"
  spec.description  = "SpeechSynthesizer"
  spec.platform     = :ios, "11.0"
  spec.homepage     = "https://gitee.com/cabbage_code/speech-synthesizer"
  spec.license      = "MIT"
  spec.author       = { "jlin" => "jlin062533@gmail.com" }
  spec.source       = { :git => "https://gitee.com/cabbage_code/speech-synthesizer.git", :branch => "master" }
  
  spec.frameworks = 'AddressBook','AudioToolBox','Contacts','CoreGraphics','CoreLocation','CoreTelephony','QuartzCore','SystemConfiguration'
  spec.libraries = 'c++', 'z'
  
  spec.vendored_frameworks = 'SpeechSynthesizer/Frameworks/iflyMSC.framework'
  spec.source_files  = "SpeechSynthesizer/Classes/**/*.{h,m,swift}"
  
  # 保留文件，不对外暴露
  spec.preserve_path = 'SpeechSynthesizer/Modulemap/**/*'

  # 本地
#  spec.pod_target_xcconfig = {'SWIFT_INCLUDE_PATHS' => __dir__ + '/SpeechSynthesizer/Modulemap','HEADER_SEARCH_PATHS' => __dir__ + '/SpeechSynthesizer/Frameworks/iflyMSC.framework/Headers'}

  # 远端
  spec.pod_target_xcconfig = {'SWIFT_INCLUDE_PATHS' => '$(PODS_ROOT)/SpeechSynthesizer/SpeechSynthesizer/modulemap','HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/SpeechSynthesizer/SpeechSynthesizer/Frameworks/iflyMSC.framework/Headers'}

#  spec.dependency 'HmsPushSDK'

end
